<?php

namespace App\Containers\AppSection\Profile\Actions;

use App\Containers\AppSection\Profile\Tasks\GetAllProfilesTask;
use App\Containers\AppSection\Profile\UI\API\Requests\GetUserProfilesRequest;
use App\Ship\Parents\Actions\Action;

class GetUserProfilesAction extends Action
{
    public function run($id, GetUserProfilesRequest $request)
    {
        return app(GetAllProfilesTask::class)->addRequestCriteria()->thisUser($id)->run();
    }
}
